This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - How to search for parts related to multiple specific parts

fli - Tuesday, August 17, 2010 9:10 AM:

I want to define a search for parts which contain parts with 2 specific Related_id's  

Equivalent to aml code:

<Relationships>
<Item type="Part BOM" action="get">
<related_id>
<Item type="Part" action="get">
<keyed_name condition="like">*5*</keyed_name>
<keyed_name condition="like">*6*</keyed_name>
</Item>
</related_id>
</Item>
</Relationships>

This funktion returns parts that contain min. one part with related_id containing the numbers 5 and 6

Does anyone know how to define a funktion that returns parts containing both a part with related_id = 5 and a part with related_id = 6   ?

 

what is the best practice inorder to get task working?

is it possible without aml-code ?

Thanks in  advance



fli - Tuesday, August 17, 2010 9:35 AM:

 

I have found the aml-code answer    still i hope this can get done without aml  ?

<Relationships>
<Item type="Part BOM" action="get">
<related_id>
<Item type="Part" action="get">

<keyed_name condition="eq">6</keyed_name>
</Item>
</related_id>
</Item>
</Relationships>

<Relationships>
<Item type="Part BOM" action="get">
<related_id>
<Item type="Part" action="get">
<keyed_name condition="eq">5</keyed_name>

</Item>
</related_id>
</Item>
</Relationships>